package phapp.model.barapp;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import javacommon.base.BaseEntity;


/**
 * <p> 标题: 消息提醒, tc_vip_msg_info 数据类 POJO
 * <p>Description: DAO层映射到数据类,页面封装数据映射到数据类
 * <p>Copyright: Copyright (c) 2014-10
 * <p>Company: 
 * @author you name
 * @version 1.0
*/

public class VipMsg extends BaseEntity {
   
   //date formats
   public static final String FORMAT_CREAT_TIME = DATE_TIME_FORMAT;
   
   //columns START
   /**序列*/
   private java.lang.Integer id;
   /**内容*/
   private java.lang.String content;
   /**会员ID*/
   private java.lang.Integer menberId;
   /**会员名*/
   private java.lang.String menberName;
   /**创建时间*/
   private java.sql.Timestamp creatTime;
   
   private java.util.ArrayList idList;
   //columns END

	public VipMsg(){
	}

	public VipMsg(
		java.lang.Integer id
	){
		this.id = id;
	}

   public void setId(java.lang.Integer value) {
      this.id = value;
   }
   
   public java.lang.Integer getId() {
      return this.id;
   }
   public void setContent(java.lang.String value) {
      this.content = value;
   }
   
   public java.lang.String getMenberName() {
	return menberName;
   }

   public void setMenberName(java.lang.String menberName) {
	this.menberName = menberName;
   }

   public java.lang.String getContent() {
      return this.content;
   }
   public void setMenberId(java.lang.Integer value) {
      this.menberId = value;
   }
   
   public java.lang.Integer getMenberId() {
      return this.menberId;
   }
   public String getCreatTimeString() {
      return date2String(getCreatTime(), FORMAT_CREAT_TIME);
   }
   
   public void setCreatTimeString(String value) {
      setCreatTime(string2Date(value, FORMAT_CREAT_TIME,java.sql.Timestamp.class));
   }
   
   public void setCreatTime(java.sql.Timestamp value) {
      this.creatTime = value;
   }
   
   public java.sql.Timestamp getCreatTime() {
      return this.creatTime;
   }

   public java.util.ArrayList getIdList() {
      return idList;
   }

   public void setIdList(java.util.ArrayList idList) {
      this.idList = idList;
   }

    /**手动增加属性后,toString,hashCode,equals都要修改*/
   public String toString() {
      return new ToStringBuilder(this)
         .append("Id",getId())
         .append("Content",getContent())
         .append("MenberId",getMenberId())
         .append("CreatTime",getCreatTime())
         .toString();
   }
   
   public int hashCode() {
      return new HashCodeBuilder()
         .append(getId())
         .append(getContent())
         .append(getMenberId())
         .append(getCreatTime())
         .toHashCode();
   }
   
   public boolean equals(Object obj) {
      if(obj instanceof VipMsg == false) return false;
      if(this == obj) return true;
      VipMsg other = (VipMsg)obj;
      return new EqualsBuilder()
         .append(getId(),other.getId())
         .append(getContent(),other.getContent())
         .append(getMenberId(),other.getMenberId())
         .append(getCreatTime(),other.getCreatTime())
         .isEquals();
   }
}

